
import 'Definition.dart';
import 'UserModel.dart';

class MomentCommentModel extends Definition {
  
	/// 编号
	int? id;
	/// 回复用户的id
	int? reply_uid;
	/// 内容
	String? content;
	UserModel? commentator;
	/// 评论作者ID
	int? user_id;

  @override
  Map<String, dynamic> toJson() {
    return {
			"id": id,
			"reply_uid": reply_uid,
			"content": content,
			"commentator": commentator?.toJson(),
			"user_id": user_id,
    };
  }

  @override
  void fromJson(Map<String, dynamic> json) {
		id = json["id"];
		reply_uid = json["reply_uid"];
		content = json["content"];
		commentator = json["commentator"] == null ? null : (UserModel()..fromJson(json["commentator"]));
		user_id = json["user_id"];
  }
  
}
  